import request from "../../utils/request";
import { R } from "../common_types";
import { LoginQo, LoginRo } from "./type";


enum API{
    URL_LOGIN = "/sys/login_register/login",
    URL_LOGOUT = "/sys/login_register/logout",
}

export const reqLogin = (data: LoginQo) => {
    return request.post<any,R<LoginRo>>(API.URL_LOGIN, data);
}